<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('系统概览')" />
</head>

<!--<head>-->
<!--    <meta charset="utf-8">-->
<!--    <meta name="viewport" content="width=device-width, initial-scale=1.0">-->
<!--    <title>系统概览</title>-->
<!--    <link rel="shortcut icon" href="favicon.ico">-->
<!--    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>-->
<!--    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>-->
<!--    <link href="../static/css/animate.min.css" th:href="@{/css/animate.min.css}" rel="stylesheet"/>-->
<!--    <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>-->
<!--</head>-->

<body class="gray-bg">
<div class="wrapper wrapper-content">

    <div class="row">
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
<!--                    <span class="label label-success pull-right">月</span>-->
                    <h5>项目总数</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins" th:text="${count}"></h1>
                    <div class="stat-percent font-bold text-success"><i class="fa fa-level-up"></i>
                    </div>
<!--                    <small>项目总数</small>-->
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
<!--                    <span class="label label-info pull-right">全年</span>-->
                    <h5>已完成数量</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins" th:text="${endCount}"></h1>
                    <div class="stat-percent font-bold text-info"><i class="fa fa-level-up"></i>
                    </div>
<!--                    <small>已完成数量</small>-->
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
<!--                    <span class="label label-primary pull-right">今天</span>-->
                    <h5>立项项目数量</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins" th:text="${completeCount}"></h1>
                    <div class="stat-percent font-bold text-navy"><i class="fa fa-level-up"></i>
                    </div>
<!--                    <small>立项项目数量</small>-->
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
<!--                    <span class="label label-danger pull-right">历史记录</span>-->
                    <h5>我的待办</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins" th:text="${neCount}"></h1>
                    <div class="stat-percent font-bold text-danger"><i class="fa fa-level-up"></i>
                    </div>
<!--                    <small>12月</small>-->
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>最近项目列表</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-hover no-margins">
                        <thead>
                        <tr>
                            <th>项目名称</th>
                            <th>项目类型</th>
                            <th>项目来源</th>
                            <th>创建时间</th>
                            <th>经办人</th>
                            <th>状态</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="management : ${managementList}">
                            <td><small th:text="${management.projectName}"></small></td>
                            <td th:text="${@dict.getLabel('sys_project_type',management.projectType)}"></td>
                            <td th:text="${@dict.getLabel('sys_project_source',management.projectSource)}"></td>
                            <td><i class="fa fa-clock-o" th:if="${management.createTime} != null and ${management.createTime} != ''" th:text="${#dates.format(management.createTime, 'yyyy-MM-dd HH:mm:ss')}"></i></td>
                            <td th:text="${management.createBy}"></td>
                            <td><span class="label label-primary" th:text="${@dict.getLabel('sys_project_schedule',management.projectSchedule)}"></span></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>最近登录记录</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-hover no-margins">
                        <thead>
                        <tr>
                            <th>登录名称</th>
                            <th>登录地址</th>
                            <th>登录地点</th>
                            <th>浏览器</th>
                            <th>操作系统</th>
                            <th>登录状态</th>
                            <th>操作信息</th>
                            <th>登录时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="login : ${logininfor}">
                            <td><small th:text="${login.loginName}"></small></td>
                            <td th:text="${login.ipaddr}"></td>
                            <td th:text="${login.loginLocation}"></td>
                            <td class="text-navy" th:text="${login.browser}"></td>
                            <td th:text="${login.os}"></td>
                            <td><span th:class="${login.status eq '0' ? 'label label-primary' : 'label label-danger'}" th:text="${login.status eq '0' ? '成功' : '失败'}"></span></td>
                            <td th:text="${login.msg}"></td>
                            <td><i class="fa fa-clock-o" th:if="${login.loginTime} != null and ${login.loginTime} != ''" th:text="${#dates.format(login.loginTime, 'yyyy-MM-dd HH:mm:ss')}"></i></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/ajax/libs/flot/jquery.flot.js}"></script>
<th:block th:include="include :: sparkline-js" />
<script th:inline="javascript">
    $(document).ready(function () {

    });
</script>
</body>
</html>
